import os

import pytest,os,sys

from tools.logger import logger
from tools.send import send_email
if __name__ == '__main__':
    logger()
    """allure报告"""
    pytest.main([r'C:\Users\张震海\Desktop\month_10_13\testCase\Case.py','-s',
                 '--clean-alluredir','--alluredir=./report'])
    os.system('allure generate ./report o ./html --clean')
    # 附件包含日志文件和测试报告
    send_email([r'C:\Users\张震海\Desktop\month_10_13\log.txt'
                   ,r'C:\Users\张震海\Desktop\month_10_13\allure-report\index.html'])